#include<iostream>
#include<cassert>
#include<unistd.h>
#include<string>
#include<cstring>
#include<cerrno>
#include <sys/types.h>
#include <sys/wait.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<ctype.h>
#include<strings.h>
#include<cstdio>
#include<cstdlib>
#include<signal.h>
#include<pthread.h>
#include "Log.hpp"
#include "Protocol.hpp"

#define SOCKET_ERR 1
#define BIND_ERR 2
#define LISTEN_ERR 3
#define USAGE_ERR 4
#define CONN_ERR 5

#define BUFFER_SIZE 1024


           